package com.easyweb.session;

import com.easyweb.entity.*;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityHome;

@Name("bankaTanimlariHome")
public class BankaTanimlariHome extends EntityHome<BankaTanimlari> {

	public void setBankaTanimlariId(BigDecimal id) {
		setId(id);
	}

	public BigDecimal getBankaTanimlariId() {
		return (BigDecimal) getId();
	}

	@Override
	protected BankaTanimlari createInstance() {
		BankaTanimlari bankaTanimlari = new BankaTanimlari();
		return bankaTanimlari;
	}

	public void load() {
		if (isIdDefined()) {
			wire();
		}
	}

	public void wire() {
		getInstance();
	}

	public boolean isWired() {
		return true;
	}

	public BankaTanimlari getDefinedInstance() {
		return isIdDefined() ? getInstance() : null;
	}

	public List<BankaSubeleri> getBankaSubeleris() {
		return getInstance() == null ? null : new ArrayList<BankaSubeleri>(
				getInstance().getBankaSubeleris());
	}

}
